﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LuKou.Member.Domains;
using LuKou.Shopspace.Domains;
using LuKou.Web.BLL.Service;

namespace LuKou.Web.BLL.Extensions
{
    public static  class UserExt
    {
        /// <summary>
        /// 获取用户的店铺
        /// </summary>
        /// <param name="session"></param>
        /// <returns></returns>
        public static Shop GetShop(this User user)
        {
            return ShopService.GetShopByUserID(user.ID);
        }
    }
}
